//
//  SVAPIReqeust.h
//  ShortVideo-ccinon
//
//  Created by LIN TONG on 2017/7/4.
//  Copyright © 2017年 LIN TONG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ASIHTTPRequest.h>
#import <ASIFormDataRequest.h>

typedef void(^APIRequestCompletionBlock) (NSString *requestURL, BOOL success,NSDictionary *data,NSError *error);

@interface SVAPIReqeust : NSObject

+ (void)svRequestAPI:(NSString *)url
              method:(NSString *)method
          parametors:(NSDictionary *)params
     completionBlock:(APIRequestCompletionBlock)block;

- (void)request:(NSString *)url
     withMethod:(NSString *)method
     parametors:(NSDictionary *)params
completionBlock:(APIRequestCompletionBlock)block;
@end
